package com.bw.educate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bw.educate.common.ResponseResult;
import com.bw.educate.common.es.CourseBase;
import com.bw.educate.entity.EduCourseBase;
import com.bw.educate.entity.EduOrder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 在线教育-五组
 * @since 2020-08-12
 */
public interface IEduCourseBaseService extends IService<EduCourseBase> {

    ResponseResult listAll(int currentPage, int pageSize, EduCourseBase courseBase);

    ResponseResult listRecommend(int currentPage, int pageSize, EduCourseBase courseBase);

    ResponseResult addCourse(long userId,EduCourseBase courseBase);

    ResponseResult updateCourse(EduCourseBase courseBase);

    ResponseResult updateRecommend(EduCourseBase courseBase);

    ResponseResult deleteCourseBase(int id);

    ResponseResult removeRecommend(int id);

    ResponseResult parentList();

    ResponseResult childList(long id);

    ResponseResult findCourse(long id);

    ResponseResult getByRecommendId(long id);

    ResponseResult searchRecommend();

    ResponseResult getRecommend(long id);

    ResponseResult updateStatus(long id, int state);

    Page<CourseBase> eslist(Integer size, Integer page, EduCourseBase courseBase);

    ResponseResult getOrderById(List<EduCourseBase> courseBases);

    ResponseResult findTeacher(long id);
}
